<?php

namespace App\Http\Requests\Wechat;

use App\Http\Requests\ApiRequest;

class WechatUserShowRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'openid' => 'required|string',
            'appid'  => 'nullable|string',
        ];
    }

//    public function messages()
//    {
//        return [
//            'openid.*' => '微信用户的openid必须是字符串',
//            'appid.*'  => '公众号的appid必须是字符串'
//        ];
//    }
}
